import { useFetchRefGet, useFetchRefPost } from '~/composables/useHttp/useFetchRef'

/**
 * 标签列表
 */
export const tagsApi = (p = 1) => {
    return useFetchRefPost<TagVo>('tagsApi', '/tag/list', {
        body: { pageNum: p, pageSize: 20 }
    })
}
/**
 * 标签详情
 */
export const tagDetailsApi = (tagId: string) => {
    return useFetchRefGet<TagVo>('tagDetailsApi', `/tag/details/${tagId}`)
}